﻿using System;

namespace Pfz.Remoting.Udp
{
	internal sealed class _PendingConnection:
		IDisposable
	{
		internal readonly GuaranteedUdpConnection _udp;
		internal readonly DateTime _dateTime;

		internal _PendingConnection(GuaranteedUdpConnection udp)
		{
			_dateTime = DateTime.Now;
			_udp = udp;
		}
		public void Dispose()
		{
			if (_udp != null)
				_udp.Dispose();
		}
	}
}
